import Vue from 'vue'
import vueX from "vuex";
Vue.use(vueX);
export default new vueX.Store({
    state: {
        city: "北京"
    },
    mutations: {
        getlist (xs,city) {
            console.log(xs)
            console.log(city)
            try {
               if(localStorage.city){
                   this.state.city = localStorage.city
               }
            } catch (e) {
                
            }
        }
    },
    mounted () {
        this.mutations.getlist()
    }
})